package db;

import java.awt.EventQueue;

import javax.swing.JInternalFrame;
import javax.swing.JTextField;
import java.awt.Font;
import javax.swing.SwingConstants;
import java.awt.Dimension;
import javax.swing.JLabel;
import java.awt.Color;
import javax.swing.JButton;

public class UpdateFrame extends JInternalFrame {
	private JTextField code;
	private JLabel label;
	private JLabel label_1;
	private JTextField codename;
	private JTextField price;
	private JLabel label_2;
	private JLabel label_3;
	private JTextField ea;
	private JButton button;
	private JButton button_1;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					UpdateFrame frame = new UpdateFrame();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public UpdateFrame() {
		super("판매수정", true, true, true, false);
		getContentPane().setBackground(Color.BLACK);
		setBounds(100, 100, 282, 234);
		getContentPane().setLayout(null);
		getContentPane().add(getCode());
		getContentPane().add(getLabel());
		getContentPane().add(getLabel_1());
		getContentPane().add(getCodename());
		getContentPane().add(getPrice());
		getContentPane().add(getLabel_2());
		getContentPane().add(getLabel_3());
		getContentPane().add(getEa());
		getContentPane().add(getButton());
		getContentPane().add(getButton_1());

	}

	private JTextField getCode() {
		if (code == null) {
			code = new JTextField();
			code.setEditable(false);
			code.setText((String) null);
			code.setPreferredSize(new Dimension(6, 25));
			code.setHorizontalAlignment(SwingConstants.CENTER);
			code.setFont(new Font("맑은 고딕", Font.BOLD, 16));
			code.setColumns(12);
			code.setBounds(98, 10, 163, 30);
		}
		return code;
	}

	private JLabel getLabel() {
		if (label == null) {
			label = new JLabel("제품 코드");
			label.setHorizontalAlignment(SwingConstants.CENTER);
			label.setForeground(Color.WHITE);
			label.setFont(new Font("1훈하얀고양이 R", Font.BOLD, 23));
			label.setBounds(12, 10, 70, 30);
		}
		return label;
	}

	private JLabel getLabel_1() {
		if (label_1 == null) {
			label_1 = new JLabel("제품명");
			label_1.setHorizontalAlignment(SwingConstants.CENTER);
			label_1.setForeground(Color.WHITE);
			label_1.setFont(new Font("1훈하얀고양이 R", Font.BOLD, 23));
			label_1.setBounds(12, 51, 70, 30);
		}
		return label_1;
	}

	private JTextField getCodename() {
		if (codename == null) {
			codename = new JTextField();
			codename.setEditable(false);
			codename.setText((String) null);
			codename.setHorizontalAlignment(SwingConstants.CENTER);
			codename.setFont(new Font("맑은 고딕", Font.BOLD, 16));
			codename.setColumns(12);
			codename.setBounds(98, 51, 163, 30);
		}
		return codename;
	}

	private JTextField getPrice() {
		if (price == null) {
			price = new JTextField();
			price.setEditable(false);
			price.setText((String) null);
			price.setHorizontalAlignment(SwingConstants.CENTER);
			price.setFont(new Font("맑은 고딕", Font.BOLD, 16));
			price.setColumns(12);
			price.setBounds(98, 92, 163, 30);
		}
		return price;
	}

	private JLabel getLabel_2() {
		if (label_2 == null) {
			label_2 = new JLabel("판매가");
			label_2.setHorizontalAlignment(SwingConstants.CENTER);
			label_2.setForeground(Color.WHITE);
			label_2.setFont(new Font("1훈하얀고양이 R", Font.BOLD, 23));
			label_2.setBounds(12, 92, 70, 26);
		}
		return label_2;
	}

	private JLabel getLabel_3() {
		if (label_3 == null) {
			label_3 = new JLabel("판매 수량");
			label_3.setHorizontalAlignment(SwingConstants.CENTER);
			label_3.setForeground(Color.WHITE);
			label_3.setFont(new Font("1훈하얀고양이 R", Font.BOLD, 23));
			label_3.setBounds(12, 132, 74, 30);
		}
		return label_3;
	}

	private JTextField getEa() {
		if (ea == null) {
			ea = new JTextField();
			ea.setText((String) null);
			ea.setHorizontalAlignment(SwingConstants.CENTER);
			ea.setFont(new Font("맑은 고딕", Font.BOLD, 16));
			ea.setColumns(12);
			ea.setBounds(98, 132, 163, 30);
		}
		return ea;
	}

	private JButton getButton() {
		if (button == null) {
			button = new JButton("반 품");
			button.setForeground(Color.WHITE);
			button.setFont(new Font("1훈하얀고양이 R", Font.BOLD, 30));
			button.setBackground(Color.BLACK);
			button.setBounds(143, 172, 118, 23);
		}
		return button;
	}

	private JButton getButton_1() {
		if (button_1 == null) {
			button_1 = new JButton("수 정");
			button_1.setForeground(Color.WHITE);
			button_1.setFont(new Font("1훈하얀고양이 R", Font.BOLD, 30));
			button_1.setBackground(Color.BLACK);
			button_1.setBounds(12, 172, 118, 23);
		}
		return button_1;
	}
}
